﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Header_User : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                string username = Utilities.Utilities.Decrypt(Request.Cookies["nguyenthaithinh"]["username"], "thaithinh-kimhang", true);
                userinfo.Text = "Xin chào: " + username + ".  <b> <a id='logout' href ='' onclick='Admin.Core.Processor.LogOut(\"logout\");'> Thoát </a></b>";
            }
            catch (Exception)
            {
                
            }
            
 
        }
    }
}